package com.black.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.black.product.mapper.ProductMapper;
import com.black.product.service.ProductService;
import com.black.product.bean.Product;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @Author: Young
 * @CreateTime: 2025-07-28
 * @Description:
 * @Version: 1.0
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {

    @Override
    public Product selectById(Long id) {
        Product product = new Product();
        product.setId(id);
        product.setPrice(new BigDecimal("100"));
        product.setName("商品1");
        product.setNumber(10);
        return product;
    }

}
